package com.itheima.Test;

import java.util.concurrent.atomic.AtomicInteger;

public class MyTreat04 extends Thread {
    public static AtomicInteger a = new AtomicInteger(0);

    @Override
    public void run() {
        for (int i = 0; i < 10000; i++) {
            a.getAndIncrement();
        }
    }
}
